home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / dbg / sun3.md / dbgInt.h < prev    next >
C/C++ Source or Header  |  1990-10-02  |  2KB  |  64 lines

  1. /*
  2.  * dbgInt.h --
  3.  *
  4.  *     Internal types, constants,  and procedure headers for the debugger module.
  5.  *
  6.  * Copyright (C) 1985 Regents of the University of California
  7.  * All rights reserved.
  8.  *
  9.  *
  10.  * $Header: /sprite/src/kernel/dbg/sun3.md/RCS/dbgInt.h,v 9.2 90/09/26 12:23:21 kupfer Exp $ SPRITE (Berkeley)
  11.  */
  12.  
  13. #ifndef _DBGINT
  14. #define _DBGINT
  15.  
  16. #include <dbgAsm.h>
  17. #include <vmMach.h>
  18.  
  19. /*
  20.  * There are sixteen registers: d0-d7 and a0-7.
  21.  */
  22.  
  23. #define    NUMGENERALREGISTERS    16
  24.  
  25. /*
  26.  * The following are the registers that are saved when the debugger is
  27.  * called.
  28.  */
  29.  
  30. extern    int        dbgTermReason;        /* Reason why debugger was
  31.                            called */
  32. extern    int        dbgSfcReg;        /* Source function code reg */
  33. extern    int        dbgDfcReg;        /* Dest function code reg */
  34. extern    int        dbgUserContext;        /* User context register */
  35. extern    int        dbgKernelContext;    /* Kernel context register */
  36.  
  37. extern    Boolean    dbgTracing;        /* Flag to say whether we are being
  38.                        traced by the debugger. */
  39.             
  40. /*
  41.  * Entry point into the debugger from the monitor.  If want to enter the
  42.  * debugger from the monitor should continue execution at this location.
  43.  */
  44.  
  45. extern    int    dbgMonPC;
  46.  
  47.  
  48. extern    int    dbgTermReason;        /* Why the debugger was entered. */
  49.  
  50. extern    int    dbgInDebugger;         /* How many levels deep we are in
  51.                        the debugger. */
  52.  
  53. extern    int    dbgTraceLevel;         /* Our trace level. */
  54.  
  55. extern     int    dbgIntPending;         /* Whether there is an interrupt
  56.                        pending for the debugger. */
  57. extern    int    dbgExcType;        /* The exception type when an
  58.                        interrupt was blocked */
  59. extern    int    dbgSavedSP;        /* Contains the true kernel stack
  60.                        pointer after return from
  61.                        the call to Dbg_Main */
  62.  
  63. #endif /* _DBGINT */
  64.